home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19941221-19950208
/
000130_news@columbia.edu_Sun Jan 8 19:16:08 1995.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
2KB
Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA27826
(5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Sun, 8 Jan 1995 14:16:12 -0500
Received: by apakabar.cc.columbia.edu id AA02148
(5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Sun, 8 Jan 1995 14:16:11 -0500
Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Grabbing text from a remote session
Date: 8 Jan 1995 19:16:08 GMT
Organization: Columbia University
Lines: 33
Message-Id: <3epdlo$232@apakabar.cc.columbia.edu>
References: <D21Htq.161@murdoch.acc.virginia.edu>
Nntp-Posting-Host: watsun.cc.columbia.edu
Apparently-To: kermit.misc@watsun.cc.columbia.edu
In article <D21Htq.161@murdoch.acc.virginia.edu>,
Erik Hatcher <esh6h@fulton.seas.Virginia.EDU> wrote:
>I want to have C-Kermit on a VAX dial up a remote computer
>and enter in a Support call for processing by our company.
>The process of entering the support call generates a sequence
>number for that call that needs to be given back to
>our client for future reference. This sequence number just appears
>on the screen when the information is being entered.
>
>Is there a way that I can grab this ever-changing value off the
>screen some how? I was thinking that I could possibly log the
>session to a file and then read it back from that file, but
>I won't be in "connect" mode so "log session" would not grab
>it. Is there an appropriate "log" command that I could use
>to file away the remotes responses??
>
There are numerous approaches, none of them pretty. You are deeply
into the area we know as "screen scraping".
First of all, LOG SESSION should, indeed, work during script
execution, as well as in CONNECT mode. So the brute-force approach
is to LOG SESSION and then grovel through the session-log file
afterwards to find the sacred number, either by hand or by program.
Well, if it can be done by program, that means there is some pattern
that allows you to locate the number. If that is true, then you can
also use INPUT or MINPUT commands in your Kermit script to locate
(say) the thing that comes just before or just after the number, and
then you can pull the number out of the \v(input) buffer by using
string functions such as \findex(), \fsubstring(), etc, in a Kermit
script program.
- Frank